package gov.pr.celepar.sentinela.admin.facade;

import gov.pr.celepar.sentinela.admin.dao.LogAcessoDAO;
import gov.pr.celepar.sentinela.admin.dao.factory.DAOFactoryServer;
import gov.pr.celepar.sentinela.admin.excecao.SentinelaServerException;
import gov.pr.celepar.sentinela.admin.pojo.LogAcesso;

import java.util.Collection;
import java.util.Date;

public class LogAcessoFacade {

	public static Collection<LogAcesso> listarAcessos(Long codSistema,
			Long codGrupo, Long codUsuario, Date dataInicial, Date dataFinal,
			Integer limite) throws SentinelaServerException, Exception {

		LogAcessoDAO logDao = DAOFactoryServer.getDAOFactory()
				.getLogAcessoDAO();

		Collection<LogAcesso> acessos = logDao.listar(codSistema, codUsuario,
				codGrupo, dataInicial, dataFinal, limite);

		return acessos;
	}
}
